import './assets/main.css'
import 'vant/lib/index.css';
import 'lib-flexible/flexible'
import { createPinia } from 'pinia'
// 1. 引入你需要的组件
import Vant from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';
// 注意：这种方式将会导入所有组件
// import NutUI from "@nutui/nutui";
import { Calendar } from 'vant';
// import NutUI from "@nutui/nutui";
// 采用按需加载时  此全局css样式，需要删除
// import "@nutui/nutui/dist/style.css";
import { AddressEdit } from 'vant';
import { PullRefresh } from 'vant';
import { createApp } from 'vue';
import App from './App.vue'
import { AddressList } from 'vant';
import router from '@/router'
import { RadioGroup, Radio } from 'vant';
import { DropdownMenu, DropdownItem } from 'vant';
import { Tabs, Tab, Icon } from 'vant';
import { Search } from 'vant';
import { Sidebar, SidebarItem } from 'vant';
import { Sticky } from 'vant';
import ElementPlus from 'element-plus'
import { TextEllipsis } from 'vant';
import 'element-plus/dist/index.css'
import { NoticeBar } from 'vant'; import { Tabbar, TabbarItem } from 'vant';
import { SwipeItem } from 'vant';
import { Button } from 'vant';

import { Empty } from 'vant';
import { NavBar, Grid, GridItem, Popup } from 'vant';
import { Card } from 'vant';
import { Switch } from 'vant';
import 'element-plus/dist/index.css'
import { Lazyload } from 'vant';
import TDesign from 'tdesign-mobile-vue';
import { Toast } from 'vant';
import { Swipe } from 'vant';
import { SwipeCell } from 'vant';
import { TreeSelect } from 'vant';
import { Uploader } from 'vant';
import { Field, CellGroup, Form } from 'vant';
import { Checkbox, CheckboxGroup, Cell } from 'vant';
import { TimePicker } from 'vant';
import { DatePicker } from 'vant';
import { ActionSheet } from 'vant';
import { Rate } from 'vant';
import { Loading } from 'vant'
import { List } from 'vant';
import { Image as VanImage } from 'vant';
import { Overlay } from 'vant';
console.log(import.meta.env.VITE_BASE_URL,'12335');

const app = createApp(App)
app.use(ElementPlus)
app.use(Overlay);
app.use(VanImage);
app.use(Rate);
app.use(ActionSheet);
app.use(TextEllipsis);
app.use(DatePicker);
app.use(TimePicker);
app.use(List);
app.use(Uploader);
app.use(Form);
app.use(Toast);
app.use(Swipe);
app.use(PullRefresh);
app.use(SwipeItem);
app.use(Loading);
app.use(SwipeCell);
app.use(Sidebar);
app.use(SidebarItem);
app.use(Cell);
app.use(Checkbox);
app.use(Switch);
app.use(TreeSelect);
app.use(Grid);
app.use(router)
app.use(Field);
app.use(AddressList);
app.use(CellGroup);
app.use(TDesign);
app.use(Search);
app.use(GridItem);
app.use(Calendar);
app.use(Button);
app.use(Icon);
app.use(AddressEdit);
app.use(Card);
app.use(Sticky);
app.use(createPinia())
app.use(Popup);
app.mount('#app')
app.use(Radio);
app.use(RadioGroup);
app.use(Tab);
app.use(Tabs);
app.use(NoticeBar);
app.use(Empty);
app.use(NavBar);
app.use(DropdownMenu);
app.use(Tabbar);
app.use(TabbarItem);
app.use(DropdownItem);
app.use(CheckboxGroup);
app.use(Lazyload, {
  lazyComponent: true,
  loading: 'https://img1.baidu.com/it/u=2710108266,182342954&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500', // 加载中的图片路径
  error: 'https://img2.baidu.com/it/u=2230130150,3313265211&fm=253&fmt=auto&app=138&f=JPEG?w=380&h=285'       // 加载失败的图片路径
}); 